﻿using FluentNHibernate.Mapping;
using SuckerPunch.Domain;

namespace SuckerPunch.Mappings
{
    public class ServerGroupMap : ClassMap<ServerGroup>
    {
        public ServerGroupMap()
        {
            Id(x => x.Id);
            Map(x => x.Name);
            HasMany(x => x.ServersInGroup)
                .Inverse();
        }
    }
}
